package com.ivc.info.dto.base;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cs.framework.common.annotation.NotNull;
import com.cs.framework.common.bo.BoBase;

/**
 * 库存信息
 * 
 * @author hedongzhou
 * 
 */
@Entity
@Table(name = "stock_info")
public class StockInfoDto extends BoBase {

	private static final long serialVersionUID = 4835671125154402596L;

	/**
	 * 库存编号
	 */
	@Id
	@GeneratedValue(generator = "stockInfoGenerator")
	@GenericGenerator(name = "stockInfoGenerator", strategy = "increment")
	@Column(name = "stock_no")
	private Long stockNo;

	/**
	 * 商品编号
	 */
	@Column(name = "product_no")
	@NotNull("商品编号")
	private String productNo;

	/**
	 * 数量
	 */
	@Column(name = "quantity")
	@NotNull("数量")
	private Integer quantity;

	public Long getStockNo() {
		return stockNo;
	}

	public void setStockNo(Long stockNo) {
		this.stockNo = stockNo;
	}

	public String getProductNo() {
		return productNo;
	}

	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

}
